<div class="paylog">

<h3><{"Edit Book"|msg}></h3>

<{if count($paylog.errors) > 0}>
<div class="errors">
<ul>
<{foreach from=$paylog.errors item="error"}>
<li><{$error}></li>
<{/foreach}>
</ul>
</div>
<{/if}>

<form action="#" method="post" class="paylog_edit_book">

<h4><{"Book Name"|msg}></h4>
<div><input type="text" name="name" value="<{$paylog.input.name}>" /></div>

<h4><{"Calender Open"|msg}></h4>
<div>
<select name="calender_open">
<{foreach from=$paylog.open_options key="value" item="caption"}>
<option value="<{$value}>"<{if $paylog.input.calender_open == $value}> selected="selected"<{/if}>><{$caption}></option>
<{/foreach}>
</select>
</div>

<h4><{"Summary Open"|msg}></h4>
<div>
<select name="summary_open">
<{foreach from=$paylog.open_options key="value" item="caption"}>
<option value="<{$value}>"<{if $paylog.input.summary_open == $value}> selected="selected"<{/if}>><{$caption}></option>
<{/foreach}>
</select>
</div>

<h4><{"Detail Open"|msg}></h4>
<div>
<select name="detail_open">
<{foreach from=$paylog.open_options key="value" item="caption"}>
<option value="<{$value}>"<{if $paylog.input.detail_open == $value}> selected="selected"<{/if}>><{$caption}></option>
<{/foreach}>
</select>
</div>

<div class="paylog_submit">
<input type="submit" name="save" value="<{"Submit"|msg}>" class="button icon ok" />
</div>
<input type="hidden" name="token" value="<{$paylog.token}>" />
</form>

</div>